package com.example.cas.clientone.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @program: casdemo
 * @description: 配置工具类
 * @author: 张 桥
 * @create: 2020-08-19 15:29
 */
@Configuration
@ConfigurationProperties(prefix = "")
public class PropertiesUtil {

    private static Logger logger = LoggerFactory.getLogger(PropertiesUtil.class);

    @Value("${appTittle}")
    public String appTittle;

    public String getAppTittle() {
        logger.info(appTittle + "-----------appTittle--------------");
        return appTittle;
    }


}
